Modular grammar specification

نویسندگان

  • Adrian Johnstone
  • Elizabeth Scott
  • Mark van den Brand
چکیده

We establish a semantics for building grammars from a modularised specification in which modules are able to delete productions from imported nonterminals. Modules have import lists of nonterminals; some or all of an imported nonterminal’s productions may be suppressed at import time. There are two basic import mechanisms which (a) reference or (b) clone an imported nonterminal’s productions. One of our goals is to allow a precise answer to the question: ‘what character level language does this grammar generate’ in the face of difficult issues such as the mutual embedding of languages that have different whitespace and commenting conventions. Our technique is to automatically generate a character level grammar from grammars written at token level in the conventional way; the grammar is constructed from modules each of which may have its own whitespace convention.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

ArabTAG: from a Handcrafted to a Semi-automatically Generated TAG

In this paper, we present the redesign of an existing TAG for Arabic using a description language (so-called metagrammatical language). The use of such a language makes it easier for the linguist to share information among grammatical structures while ensuring a high degree of modular-ity within the target grammar. Additionally , this redesign benefits from a grammar testing environment which i...

متن کامل

Including control architecture in attribute grammar specifications of feedforward neural networks

An important problem in evolutionary computing is the design of genetic representations of neural networks that permit optimization of topology and learning characteristics. One promising approach for genetic representation of neural networks is the use of grammars to depict a process in which neural networks may be generated. Existing grammar representations of neural networks describe classes...

متن کامل

SPNL: Processes as Language-Oriented Building Blocks of Stochastic Petri Nets

This paper presents a modeling paradigm which combines graphical and textual elements for the structured specification of performance and dependability models based on stochastic Petri nets. The aim is to manage the complexity of model specification. In the proposed framework processes are encapsulated submodels which are building blocks as known from modular programming languages. Process inte...

متن کامل

Integrated Graphics Environment to Develop Applications Based on Attribute Grammars

This paper presents an overview of an integrated graphic environment called P-GEN (D to develop applications based on attribute grammars. The system has a modular structure to enable integration of different modules for all phases of the processing of an attribute grammar specification. This environment contains routines for transforming attribute grammar specifications written in different for...

متن کامل

Supported Semantics for Modular Systems

Modular systems offer a language-independent declarative framework in which modules from different languages are combined to describe a conceptually and/or computationally complex problem. The original semantics developed to combine modules in a modular system is a model-theoretical semantics with close ties to relational algebraic operations. In this paper, we introduce a new semantics for mod...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:
  • Sci. Comput. Program.

دوره 87  شماره 

صفحات  -

تاریخ انتشار 2014